package com.ouheng.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

import com.ouheng.shop.dao.HelpDao;
import com.ouheng.shop.domain.HelpDO;
import com.ouheng.shop.service.HelpService;



@Service
public class HelpServiceImpl implements HelpService {
	@Autowired
	private HelpDao helpDao;
	
	@Override
	public HelpDO get(Long id){
		return helpDao.get(id);
	}
	
	@Override
	public List<HelpDO> list(Map<String, Object> map){
		return helpDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return helpDao.count(map);
	}
	
	@Override
	@Transactional
	public int save(HelpDO help){
		return helpDao.save(help);
	}
	
	@Override
	@Transactional
	public int update(HelpDO help){
		return helpDao.update(help);
	}
	
	@Override
	@Transactional
	public int remove(Long id){
		return helpDao.remove(id);
	}
	
	@Override
	@Transactional
	public int batchRemove(Long[] ids){
		return helpDao.batchRemove(ids);
	}
	
}
